package com.zhuangyuan.cloud.data.service;

import com.zhuangyuan.cloud.data.repository.sqlite.CartRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

@Service
public class CartServiceImpl extends ABaseService implements CartService {
    @Autowired
    private CartRepository cartRepository;
    @Override
    protected JpaRepository getRepository() {
        return cartRepository;
    }

    @Override
    public int findCateCount(String userId, String cateId) {
        return cartRepository.findCateCount(userId,cateId);
    }
}
